import time


from selenium import webdriver
from selenium.webdriver.common.by import By
from selenium.webdriver.support import expected_conditions
from selenium.webdriver.support.select import Select
from selenium.webdriver.support.wait import WebDriverWait

driver = webdriver.Edge()
driver.get("http://www.baidu.com")



driver.implicitly_wait(10)
driver.find_element('id','chat-textarea').send_keys("隐式等待")
time.sleep(3)

locator=('id','chat-textarea')
input=WebDriverWait(driver,10,1).until(expected_conditions.presence_of_element_located(locator))
input.send_keys('显式等待')

time.sleep(3)
